home *** CD-ROM | disk | FTP | other *** search
- // ****************************************************************************************
- // * *
- // * Egypte 2 : Script *
- // * *
- // * SΘquence 007 : Maison de vie ouest *
- // * *
- // ****************************************************************************************
- // * v0.0 : 29/11/1999 - GrΘgory JOSEPH *
- // * v1.0 : 07/01/2000 - GrΘgory JOSEPH *
- // **************************************
- [S007]
-
-
- // **************************************
- // * WamEdit *
- // **************************************
-
-
- :init
- begin
- if not S007Init then
- set S007Init = 1
- ShowSpw "Porte_Q7" first back
- FMV "Maisnvie"
- set musiqueEnCours = 17
-
- showSpw "ScribeEcole_S006" 4
- set invent = invent + "EpiEmpoisonne"
- set hand = ""
-
- set partie = 2
- endif
-
-
- // DisableClick "Encre"
- // DisableClick "Outils_1"
-
- // if SP <= 4 then
- // showspw "ScribeBibliotheque_S007" 2
- // else
- // hidespw "ScribeBibliotheque_S007"
- // endif
-
- end
-
-
- :loop
- begin
- //******* Gestion de la mussique *************//
- if TIME4 >= 200 then
- if musiqueEnCours = 0 then
- // rien
- else
- music musiqueEnCours
- set oldMusiqueEnCours = musiqueEnCours
- set TIME4 = 0
- endif
-
- elif not oldMusiqueEnCours = musiqueEnCours then
- if musiqueEnCours = 0 then
- // rien
- else
- music musiqueEnCours
- set oldMusiqueEnCours = musiqueEnCours
- set TIME4 = 0
- endif
-
- // else
- // if musiqueEnCours = 0 then
- // // rien
- // else
- // music musiqueEnCours
- // set oldMusiqueEnCours = musiqueEnCours
- // set TIME4 = 0
- // endif
- endif
-
- // **************************************
- // * Dialogue avec Irou *
- // **************************************
- if Mouse_Click = "ScribeBibliotheque_S007" then
- if not D017 then
- if not D014 and hand = "" then
- Dialog "HR014S01" "ScribeBibliotheque_S007" 2 1
- Minute 8
- elif hand = "Outils_1" and not IrouGotOutils1 then
- Dialog "HR017S01" "ScribeBibliotheque_S007" 2 1
- set IrouGotOutils1 = 1
- set Invent = Invent - "Outils_1"
- FMV "IrouSori" PauseMusic
- ShowSpw "ScribeBibliotheque_S007" 4
- Minute 10
- elif hand = "CalameMentor" and not IrouGotOutils1 then
- Dialog "HR017S01" "ScribeBibliotheque_S007" 2 1
- set IrouGotOutils1 = 1
- set Invent = Invent - "CalameMentor"
- FMV "IrouSori" PauseMusic
- ShowSpw "ScribeBibliotheque_S007" 4
- Minute 10
- elif hand = "" then
- Dialog "SB014S08" "ScribeBibliotheque_S007" 2 1
- else
- if random % 3 = 0 then
- Dialog "SB815S01" "ScribeBibliotheque_S007" 2 1
- elif random % 2 = 0 then
- Dialog "SB817S01" "ScribeBibliotheque_S007" 2 1
- else
- Dialog "SB816S01" "ScribeBibliotheque_S007" 2 1
- endif
- endif
- elif hand = "" then
- Dialog "SB167S01" "ScribeBibliotheque_S007" 4 3
- else
- if random % 3 = 0 then
- Dialog "SB815S01" "ScribeBibliotheque_S007" 4 3
- elif random % 2 = 0 then
- Dialog "SB817S01" "ScribeBibliotheque_S007" 4 3
- else
- Dialog "SB816S01" "ScribeBibliotheque_S007" 4 3
- endif
- endif
-
- // **************************************
- // * Sortie *
- // **************************************
- elif Mouse_Click = "zS005" then
- if D045 then
- // if SP = 12 then
- // hidespw "ScribeEcole_S023" NoWamCheck
- // showspw "ScribeEcole_S006" 4 NoWamCheck
- // endif
-
- AutoMove "zS005"
- FMV "MV_2_TS"
- GameOver
- // Jump "TmplSolr" "S005" 12 -180 0 NoFade
- else
- dialog "HR188V01" off
- endif
- elif Mouse_Click = "zS006" then
-
- AutoMove "zS006"
- Jump "MaisnVie" "S006" 5 Fade
-
- elif Mouse_Click = "zS023" then
- if IrouGotOutils1 and GotEncre then
- Minute 12
- if not OpenQ7 then
- AutoMove "zS023"
- set OpenQ7 = 1
- ShowSpw "Porte_Q7" once wait
- HideSpw "Porte_Q7"
- set Warp_To = 0
- set Mouse_Click = 0
- else
- // Vers bibliothΦque
- AutoMove "zS023"
- Jump "MaisnVie" "S023" 16 Fade
- endif
-
-
- else
- set Warp_To = 0
- set Mouse_Click = 0
- endif
- endif
- end